/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package e.z.blog.back.com;

import java.util.List;

/**
 *
 * @param <Type> < p/> thor Enzo
 */
public interface DaoBaseApi<Type> {

        /**
         *
         */
        String CREATE = "create";
        /**
         *
         */
        String READ_ALL = "read";
        /**
         *
         */
        String READ_BY_ID = "readById";
        /**
         *
         */
        String READ_SON_BY_ID = "readSonById";
        /**
         *
         */
        String UPDATE = "update";
        /**
         *
         */
        String DELETE = "delete";
        //状态
        /**
         *
         */
        String SUCCESS = "成功";
        /**
         *
         */
        String FAIL = "失败";

        Type create ( Type type );

        Type read ( Type type );

        List<Type> readAll ();

        Type update ( Type type );

        Type delete ( Type type );
}
